package com.suse.lhw.hms.foodserver.service;

import com.suse.lhw.hms.foodserver.domin.FFoodmodelInstance;
import com.suse.lhw.hms.foodserver.pojo.output_POJO.FIAndName;

import java.util.List;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.foodserver.service
 * @ClassName: FFoodmodelInstanceService
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/18 19:30
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/18 19:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface FFoodmodelInstanceService {


    int deleteByPrimaryKey(Integer id);

    int insert(FFoodmodelInstance record);

    int insertSelective(FFoodmodelInstance record);

    FFoodmodelInstance selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FFoodmodelInstance record);

    int updateByPrimaryKey(FFoodmodelInstance record);

    int eatAFoodByModelId(int foodId, int unitId, int quanity, int eattime, String userId);

    int splitOutAFoodByModelId(int instanceId);

    List<FIAndName> selectByUserId(String userId);

    List<FFoodmodelInstance> selectByFoodModelId(int foodid);
}

